/**
 * Created by yanghaibo
 */
var memberInfoParam = {};
(function(doc, win) {

    // sui 页面就绪时间
    $(doc).on("pageInit", "#memberInfoPage", function() {
        var memberCardId = CommonUtil.getUrlParam("memberCardId");
        if (!memberCardId) {
            DialogUtil.dialogWarn("无效会员");
            return;
        }
        memberInfoParam.memberCardId = memberCardId;
        var controller = new MemberInfoController();
        controller.cardInfo(memberCardId);
    });

    // 绑定支付宝
    $(doc).on("click", "#memberPageAlipayBtn", function () {
        AppUtil.openCardAlipayBindActivity(memberInfoParam.memberCardId);
    });

    // 设置支付密码
    $(doc).on("click", "#memberPagePwdBtn", function () {
        AppUtil.openCardPhoneModifyPasswordActivity(memberInfoParam.memberCardId, memberInfoParam.mobile);
    });

})(document, window);

